#include <PeopleList.h>
#include <Length.h>
PeopleList& PeopleList::getNormalPeoples()
{
    static PeopleList peopleList;
    peopleList.personList_m.push_back(People("San Chang", Length(61,INCH)));
	peopleList.personList_m.push_back(People("Si Li",   Length(67,INCH)));
	peopleList.personList_m.push_back(People("Wu Wang", Length(93,INCH)));
    return peopleList;
}
PeopleList& PeopleList::getFamousPeoples()
{
    static PeopleList peopleList;
	peopleList.personList_m.push_back(People("Hui Qin", Length(54,INCH)));
	peopleList.personList_m.push_back(People("Fei Yue", Length(86,INCH)));	
	peopleList.personList_m.push_back(People("Gou Zhao", Length(64,INCH)));
    return peopleList;
}

void PeopleList::toString(std::ostream & os,const Format &format)
{
    for(ConstPeoplesIterator ci = peoples_m.begin(); ci != peoples_m.end(); ++ci)
    {
        if(ci != peoples_m.begin())
        {
            os<<"\n";
        }
        ci->toString(os,format);
    }
}

